# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsm
pkgver=1.2.4
pkgrel=4
pkgdesc="X11 Session Management library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="libice-dev xorgproto xtrans util-linux-dev util-macros xmlto"
checkdepends="check-dev"
source="https://www.x.org/releases/individual/lib/libSM-$pkgver.tar.xz"
builddir="$srcdir"/libSM-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-libuuid \
		--enable-docs \
		--with-xmlto \
		--without-fop
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7f1d41b7b6c5dd456c49ccad7740c3ba9791a2793fa50fd94814a4164ce2e20c4a0a0ad42a87708e494ed5c23f611be6d3ccd9ef1e9add6d46ac545e2b0f6f86  libSM-1.2.4.tar.xz
"
